import { rcaNumberFormat0 } from './common.js'
import { dateFormat } from '@/util/date';
import { commonTableOption } from './common.js'
export const startDate = dateFormat(new Date(), 'yyyy-MM-') + '01';
export const endDate = dateFormat(new Date(), 'yyyy-MM-dd');
export const tableOption = {
  ...commonTableOption,
  page: false,
  columnBtn: false,
  index: false,
  height: 500,
  selection: true,
  column: [
    {
      "type": "input",
      "label": "唯一标识",
      "prop": "id",
      display:false,
      hide:true,
    },{
    label: '地铁收入报表与对账数据复核',
    children: [
      {
        type: 'date',
        label: '日期',
        searchSpan: 12,
        width:'120px',
        searchRange: true,
        search: true,
        searchValue: [startDate, endDate],      // 这是我获取的默认的显示日期，我这里是['2020-08-04', '2020-09-22']
        format: 'yyyy-MM-dd',                  // 这是组件展示的日期格式
        valueFormat: 'yyyy-MM-dd',
        prop: 'statisticsDate'
      },/* {
        type: 'input',
        label: 'BOM小额',
        children: [{
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '支付宝',
          prop: 'bomAlipay'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '微信',
          prop: 'bomWechat'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '支付宝对账',
          prop: 'bomAlipayCompare'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '微信对账',
          prop: 'bomWechatCompare'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '支付宝差异',
          prop: 'diffBomAlipay'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '微信差异',
          prop: 'diffBomWechat'
        },

        ]
      }, */
	 /* {
        type: 'input',
        label: '二维码对账',
        children: [{
          type: 'input',
          showSummary: true,
          precision: 2,
          width:'120px',
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '支付宝',
          prop: 'qrAlipay'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
		  width:'120px',
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '微信',
          prop: 'qrWechat'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
		  width:'120px',
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '银联',
          prop: 'qrBank'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
		  width:'120px',
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '支付宝对账',
          prop: 'qrAlipayCompare'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '微信对账',
          prop: 'qrWechatCompare'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
		  width:'120px',
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '银联对账',
          prop: 'qrBankCompare'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
          width:'120px',
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '支付宝差异',
          prop: 'diffQrAlipay'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
		  width:'120px',
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '微信差异',
          prop: 'diffQrWechat'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
		  width:'120px',
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '银联差异',
          prop: 'diffQrBank'
        },]
      }, */{
        type: 'input',
        label: '长安通消费系统清分对账',
        children: [{
          type: 'input',
          showSummary: true,
          precision: 2,
		  width:'120px',
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '系统清分',
          prop: 'catcardSystem'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
		  width:'120px',
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '系统清分对账',
          prop: 'catcardSysttemCompare'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
		  width:'120px',
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '差异',
          prop: 'diffCatcardSysttem'
        },]
      }, {
        type: 'input',
        label: '充值',
        children: [{
          type: 'input',
          showSummary: true,
          precision: 2,
		  width:'120px',
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '充值',
          prop: 'recharge'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
		  width:'120px',
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '对账充值',
          prop: 'rechargeCompare'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
		  width:'120px',
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '差异',
          prop: 'diffRecharge'
        },]
      }, {
        type: 'input',
        label: '交通卡系统清分对账',
        children: [{
          type: 'input',
          showSummary: true,
          precision: 2,
		  width:'120px',
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '系统清分',
          prop: 'jtcardSystem'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
		  width:'120px',
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '系统清分对账',
          prop: 'jtcardSysttemCompare'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
		  width:'120px',
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '差异',
          prop: 'diffJtcardSysttem'
        },]
      },/* {
        type: 'input',
        label: 'ITVM',
        children: [{
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '支付宝',
          prop: 'itvmAlipay'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '微信',
          prop: 'itvmWechat'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '银行',
          prop: 'itvmBank'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '支付宝对账',
          prop: 'itvmAlipayCompare'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '微信对账',
          prop: 'itvmWechatCompare'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '银行对账',
          prop: 'itvmBankCompare'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '支付宝差异',
          prop: 'diffItvmAlipay'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '微信差异',
          prop: 'diffItvmWechat'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '银行差异',
          prop: 'diffItvmBank'
        },]
      }, */
	  /*{
        type: 'input',
        label: '人脸识别',
        children: [{
          type: 'input',
          showSummary: true,
          precision: 2,
		  width:'120px',
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '建行',
          prop: 'faceBank'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
		  width:'120px',
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '对账确认',
          prop: 'faceBankCompare'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
		  width:'120px',
          formatter: (row, value, label, column) => {
            return rcaNumberFormat0(value)
          },
          label: '差异',
          prop: 'diffFaceBank'
        }]
      }, */{
        type: 'select',
        label: '确认状态',
        prop: 'conformStatus',
        search: true,
        //dicUrl: '/admin/dict/type/adjust_confirm',
        dicData:[{
          label: '未确认',
          value: '0'
        }, {
          label: '已确认',
          value: '1'
        }],
      }, {
        type: 'date',
        label: '确认时间',
        width: 140,
        format: 'yyyy-MM-dd HH:mm:ss',                  // 这是组件展示的日期格式
        valueFormat: 'yyyy-MM-dd HH:mm:ss',
        prop: 'conformTime'
      },]
  }]
}
